#ifndef BEHAVIOR_TREE_PARALLEL_POLICY_H
#define BEHAVIOR_TREE_PARALLEL_POLICY_H

#include "behavior_tree_policy.h"
#include <behaviortree_cpp_v3/controls/parallel_node.h>
#include "global.h"

namespace policy
{
/**
 * @brief:  用行为树方式实现并行策略
 * @author: lianpu.sun
 */
class BehaviorTreeParallelPolicy: public BehaviorTreePolicy
{
public:
    explicit BehaviorTreeParallelPolicy(const std::string &name);
    ~BehaviorTreeParallelPolicy() override;

    void setSuccessThreshold(int count);
};
}

#endif //BEHAVIOR_TREE_PARALLEL_POLICY_H
